    1   MAKRER=SHOW_LOCALE;printf $MAKRER""; locale; MAKRER=SHOW_LOCALE;printf $MAKRER"";
    2   CHECK_TYPE=SHELL; echo "INFO=${CHECK_TYPE} PID=$$ PPID=$PPID TTY=$(tty) SHELL=$0 HOME=$HOME PWD=$PWD| CHECK_SHELL_END"
    3  ssh ubuntu@47.108.90.190
    4   MAKRER=SHOW_LOCALE;printf $MAKRER""; locale; MAKRER=SHOW_LOCALE;printf $MAKRER"";
    5   CHECK_TYPE=SHELL; echo "INFO=${CHECK_TYPE} PID=$$ PPID=$PPID TTY=$(tty) SHELL=$0 HOME=$HOME PWD=$PWD| CHECK_SHELL_END"
    6  # 创建目录结构
    7  mkdir -p ~/homework1/dir1/{subdir1,subdir2}
    8  mkdir -p ~/homework1/test/{subtest1,subtest2}
    9  # 创建软链接
   10  ln -s ../test/subtest1 ~/homework1/dir1/subdir3
   11  # 创建文件
   12  touch ~/item1.txt
   13  # 生成目录树并保存
   14  tree ~ > ~/homework1/homework1.test1.1
   15  sudo apt update && sudo apt install -y tree
   16  sudo yum install -y tree
   17  mkdir -p ~/homework1/dir1/{subdir1,subdir2}
   18  ls
   19  mkdir -p ~/homework1/test/{subtest1,subtest2}
   20  ln -s ../test/subtest1 ~/homework1/dir1/subdir3
   21  touch ~/item1.txt
   22  tree ~ > ~/homework1/homework1.test1.1 2>&1 || {     echo "目录树结构:" > ~/homework1/homework1.test1.1;     find ~ -not -path '*/\.*' -printf '%P\n' | sort >> ~/homework1/homework1.test1.1; }
   23  ls
   24  cd ~/homework1/dir1/subdir3
   25  cd -P ..
   26  pwd | tee ~/homework1/homework1.test1.3
   27  cd ~/homework1/dir1/subdir3
   28  cd ..
   29  pwd | tee ~/homework1/homework1.test1.4
   30  history > ~/homework1/homework1.test1.5
   31  ls
   32  cat ~/homework1/homework1.test1.1
   33  cat ~/homework1/homework1.test1.3
   34  cat ~/homework1/homework1.test1.4 
   35  cat ~/homework1/homework1.test1.5
   36   MAKRER=SHOW_LOCALE;printf $MAKRER""; locale; MAKRER=SHOW_LOCALE;printf $MAKRER"";
   37   CHECK_TYPE=SHELL; echo "INFO=${CHECK_TYPE} PID=$$ PPID=$PPID TTY=$(tty) SHELL=$0 HOME=$HOME PWD=$PWD| CHECK_SHELL_END"
   38  ls
   39  rm it
   40  rm item1.txt
   41  ls
   42  rm item1.txt
   43  ls
   44  rm -rf homework1
   45  ls
   46  git -version
   47  sudo apt update
   48  sudo yum install git
   49  git config --global user.name "zeng xiaobo"
   50  git config --global user.email "3443203410@qq.com"
   51  git clone https://gitee.com/gznu_ics/linuxaa2024.git
   52  cd repository
   53  ls
   54  cd linuxaa2024/
   55  ls
   56  cd ..
   57  ls
   58  mkdir -p homework1/dir1/{subdir1,subdir2} homework1/test/{subtest1,subtest2}
   59  touch homework1/item1.txt
   60  ln -s ../test/subtest1 homework1/dir1/subdir3
   61  sudo yum install tree
   62  tree > ./homework1/homework1.test1.1
   63  rm -r ./homework1/
   64  rm -r ./homework1
   65   MAKRER=SHOW_LOCALE;printf $MAKRER""; locale; MAKRER=SHOW_LOCALE;printf $MAKRER"";
   66   CHECK_TYPE=SHELL; echo "INFO=${CHECK_TYPE} PID=$$ PPID=$PPID TTY=$(tty) SHELL=$0 HOME=$HOME PWD=$PWD| CHECK_SHELL_END"
   67   MAKRER=SHOW_LOCALE;printf $MAKRER""; locale; MAKRER=SHOW_LOCALE;printf $MAKRER"";
   68   CHECK_TYPE=SHELL; echo "INFO=${CHECK_TYPE} PID=$$ PPID=$PPID TTY=$(tty) SHELL=$0 HOME=$HOME PWD=$PWD| CHECK_SHELL_END"
   69  cd linuxaa2024/homework1
   70  mkdir -p homework1/dir1/{subdir1,subdir2}
   71  mkdir -p homework1/test/{subtest1,subtest2}
   72  ln -s ../test/subtest1 homework1/dir1/subdir3
   73  tree homework1 > homework1/homework1.test1.1
   74  cd homework1/dir1/subdir3
   75  cd -P ..
   76  pwd > ../../homework1/homework1.test1.3
   77  cd /root/Linuxaa2024/homework1/dir1/subdir3
   78  ls -l /root/Linuxaa2024/homework1
   79  cd ..
   80  ls
   81  cd homework1
   82  cd /root/Linuxaa2024/homework1/homework1/dir1/subdir3
   83  ls -l
   84  cd ..
   85  ls -l
   86  cd /root/linuxaa2024/homework1
   87  ls -l
   88  cd homework1
   89  ls -l
   90  cd dir1/subdir3
   91  cd ..
   92  pwd > ../homework1/homework1.test1.4
   93  pwd > ../homework1/homework1/homework1.test1.4
   94  pwd > ../../homework1/homework1.test1.3
   95  pwd > ../../homework1/homework1.test1.4
   96  history
   97  history > homework1/homework1.test1.5
   98  history > ../../homework1/homework1.test1.5
